package com.zhangliuliu.controller;

import com.zhangliuliu.bean.ConsultBean;
import com.zhangliuliu.service.ConsultService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("consult")
public class consultController {
    @Resource
    private ConsultService consultService;

    @RequestMapping("add")
    @ResponseBody
    void addInfo(ConsultBean consultBean){
        consultService.addInfo(consultBean);
    }
}
